#include <iostream>
#include <stack>

using namespace std;

int main()
{
	stack <int> myStack;
	myStack.push(5);
	myStack.push(3);
	myStack.push(2);

	cout << "Number of ints on the stack " << myStack.size() << endl;
	// 3
	while(!myStack.empty())
	{
		cout << "poping " << myStack.top() << endl;
		myStack.pop();
	}
	// poping 2
	// poping 3
	// poping 5

	cout << "Number of ints on the stack " << myStack.size() << endl;
	// 0
	system("pause");
}